package net.wanho.controller;

import net.wanho.pojo.User;
import net.wanho.service.UserServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {

    @Autowired
    private UserServiceI userServiceI;


    @GetMapping("/queryAllUser")
    public List<User> queryAllUser(){
        //查询所有用户
        return userServiceI.queryAllUser();
    }

}
